package com.lin.chapter21;

import java.util.ArrayList;
import java.util.List;

public class Branch extends Corp {

	private List<Corp> subordinateList = new ArrayList<>();

	public Branch(String name, String position, int salary) {
		super(name, position, salary);
	}

	public void addSubordinate(Corp corp) {
		this.subordinateList.add(corp);
	}

	public List<Corp> getSubordinate() {
		return this.subordinateList;
	}
}
